package com.ncucoder.iterator;


/**
 * @author <a href="https://edit.ncucoder.com">hsowan</a>
 * @since 2018-12-19 15:23
 */
public class Test {
    public static void main(String[] args) {

        System.out.println("********************** ArrayList begin ***********************");
        Aggregation students = new MyArrayList();
        Iterator iterator = students.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
        System.out.println("********************** ArrayList end ***********************");

        System.out.println("********************** Array begin ***********************");
        students = new MyArray();
        iterator = students.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
        System.out.println("********************** Array begin ***********************");
    }
}
